<div class="table-responsive" style="overflow-x: visible;">
    <table class="table table-bordered table-hover">
        <tbody>
        <tr>
            <th class="hidden-xs">
                <label><input onchange="checkAll()" type="checkbox" value=""></label>
            </th>
            <th>ID</th>
            <th>Application</th>
            <th>Model</th>
            <th>RowId</th>
            <th>Module</th>
            <th>Body</th>
            <th>Author</th>
            <th>状态</th>
            <th>时间</th>
            <th>操作</th>
        </tr>

        {% for item in records %}
        <tr>
            <td class="hidden-xs">
                <label><input name="checkbox" class="check" type="checkbox" value="{{item._id}}"></label>
            </td>
            <td>{{item._id}}</td>
            <td>{{item.application}}</td>
            <td>{{item.model}}</td>
            <td>{{item.rowId}}</td>
            <td>{{item.module}}</td>
            <td>
                <div class="btn-group" style="margin: 0px">
                    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        内容<span class="caret"></span></button>
                    <div class="dropdown-menu" style="padding: 10px;max-width: 200px;">
                        {{body}}
                    </div>
                </div>
            </td>

            <td>
                {{ item.commenter.username}}
            </td>
            <td>
                {% if item.status %}
                <button onclick="javascript:disableItem('{{item._id}}')" class="btn btn-success"><span class="glyphicon glyphicon-ok"/> </button>
                {% else %}
                <button onclick="javascript:enableItem('{{item._id}}')" class="btn btn-danger" ><span class="glyphicon glyphicon-remove"/></button>
                {% endif %}
            </td>
            <td>{{ item.updatedAt | date('YYYY-MM-DD HH:mm:ss') }}</td>
            <td class="table-action">
                <a href="/admin/comment/add?id={{item._id}}">编辑</a>
                <button onclick="javascript:deleteItem('{{item._id}}')" class="btn btn-danger" >删除</button>
            </td>
        </tr>
        {% endfor %}

        </tbody>
    </table>
    <div class="box-footer no-padding">
        <div class="mailbox-controls">
            <div class="pull-right">
                {{ pager | safe }}
            </div>
        </div>
    </div>
</div>